package cn.silver.module.message.controller;

import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.message.bean.NoticeBean;
import cn.silver.module.message.domain.MsgNotice;
import cn.silver.module.message.param.NoticeParam;
import cn.silver.module.message.service.IMsgNoticeService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公告 信息操作处理
 *
 * @author Lion Li
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "消息管理-站内消息通知")
@RequestMapping("/msg/notice")
public class MsgNoticeController extends BusController<IMsgNoticeService, MsgNotice, NoticeParam, NoticeBean> {


    @Override
    @Resource
    public void setBaseService(IMsgNoticeService baseService) {
        this.baseService = baseService;
        this.setCode("msg:notice");
        this.setTitle("消息管理-站内消息通知");
    }
}
